package CtrLayer;

import java.util.ArrayList;

import DBLayer.*;
import ModelLayer.*;
public class ProductCtr {

	private ProductDB pDB = new ProductDB();
	private PartOrder pO;
	private SalesOrder sO;
	
	public ArrayList<Clothing> findProductClothing(String productType)
	
	{
		return pDB.findProductClothing(productType);
	}
	

	public ArrayList<GunReplicas> findProductGunReplicas(String productType)
	
	{
		return pDB.findProductGunReplicas(productType);
	}

	public ArrayList<Equipment> findProductEquipment(String productType)
	
	{
		return pDB.findProductEquipment(productType);
	}

	
	public void addProduct(String name, double purchasePrice, double salesPrice, double rentPrice, String countryOfOrigin, int minStock, int stock, String productType, int supplierId)
	{
		Product p = new Product(name, purchasePrice, salesPrice, rentPrice, countryOfOrigin, minStock, stock, productType, supplierId);
		
		ProductDB pdb = new ProductDB();
		pdb.createProduct(p);
	}
	
	public void addProductToPartOrder()
	{
		
	}


}
